package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveFloverAndDish(DishDto dishDto);


    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

    List<DishDto> dishList(Dish dish);

    void updateDish(Long id,List<Long> ids);

    void delete(List<Long> ids);

    Page<DishDto> pageDishManage(int page, int pageSize, String name);
}
